<?php

namespace App\Models\Common;

use App\Models\BaseModel;

class FileTranscodingJobModel extends BaseModel
{
    protected $table = 'file_transcoding_jobs';

    protected $fillable = [
        'jobId',
        'filePath',
        'model',
        'updatedField',
        'updatedModelId',
        'filePathEncoded',
        'status',
    ];

    const STATUS_WAIT = 0;
    const STATUS_OK   = 1;
    const STATUS_FAIL = 2;

    const STATUS_MAPPING = [
        self::STATUS_WAIT => '等待转码',
        self::STATUS_OK   => '转码成功',
        self::STATUS_FAIL => '转码失败',
    ];

}
